for i in range(1,10):
    for x in range(1,i+1):
        if i==x:
            print(i,'*',x,'=',i*x,'\n')
        else:
            print(i,'*',x,'=',i*x,end='  ')